package priv.abadstring.study.haoke.webapi.manage;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;
import priv.abadstring.study.haoke.dubbo.api.AdServer;
import priv.abadstring.study.haoke.dubbo.dto.PageInfo;
import priv.abadstring.study.haoke.dubbo.entity.Ad;

/**
 * AdManage
 *
 * @author aBadString
 * @date 2021-06-18 19:34:51
 */
@Service
public class AdManage {

    @Reference(version = "1.0.0")
    private AdServer adServer;

    public PageInfo<Ad> list(Integer type, Integer page, Integer pageSize) {
        return this.adServer.list(type, page, pageSize);
    }
}
